﻿package plugin.accomplishment
{
    import com.core.*;

    public class AccomplishControl extends Control
    {

        public function AccomplishControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "achievement")
            {
                if (param2.property == "update")
                {
                    this.target.upDateMessage();
                    this.target.xzview.upDateXZ();
                }
                if (param2.property == "GetXunZdh")
                {
                    this.target.xzview.GetXunZdh(param2.newvalue);
                }
                if (param2.property == "count")
                {
                    this.target.setCount(param2.newvalue);
                }
            }
            return;
        }// end function

    }
}
